{% extends '/ic/dashboard.html' %}
{% block content %}
        {% for news in pageData['newss'] %}
<div class="row">
                    <div class="col-xs-12 col-md-12 col-lg-12 col-sm-12">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <a href="/pg/ac_News/Preview?id={{news.id}}&pp=1" data-target="#myModall" role="button" data-toggle="modal" data-backdrop="static"  id="anteprima" class="list-group-item celestino">[{{news.tipo_news}}] <strong>{{news.title}}</strong></a>
                        </div>
            <div class="panel-body">
                {{ news.body }}
            </div>
                        <div class="panel-footer">
                            {{news.publication_date|datetimeformat}}
                        </div>
                    </div>
                </div>
</div>
        {% endfor %}
              <div class="modal fade" id="myModall" tabindex="-1" role="dialog" aria-labelledby="myModalLabell" aria-hidden="true">
            <div class="modal-dialog ">
                <div class="modal-content">
                </div>
            </div>
        </div>
{% endblock%}
<script type="text/javascript">
$(document).ready(function () {

$('#myModall').on('hidden.bs.modal', function() {
    $(this).removeData('bs.modal');
    });

});
</script>
